@extends('admin.admin.index')
@section('title','添加商品')
@section('weizhi','添加商品')
@section('con')
<div class="col-md-6 col-md-offset-3">
	<form class="form-horizontal" role="form" action="{{url('admin/seckillglobal/insert')}}" method="post"  enctype="multipart/form-data">
	  <div class="form-group">
	    <label for="inputPassword3" class="col-sm-3 control-label">商品名称</label>
	    <div class="col-sm-8">
	    	<input type="text" name="name" class="form-control" placeholder="">
		</div>
	  </div>
	  <div class="form-group">
	    <label for="inputPassword3" class="col-sm-3 control-label">商品大图</label>
	    <div class="col-sm-9">
	      <input type="file" name="pic" id="input"/>
	    </div>
	  </div>
	  <div class="form-group">
	    <label for="inputPassword3" class="col-sm-3 control-label">商品小图</label>
	    <div class="col-sm-9">
	      <input type="file" name="file" id="input"/>
	    </div>
	  </div>
	  <div class="form-group">
	    <label for="inputPassword3" class="col-sm-3 control-label">授权信息</label>
	    <div class="col-sm-9">
	  		<div class="input-group col-md-6">
	  		  <select name="offcial" class="form-control">
	  		  	<option>请选择</option>
	  		    <option value="0">非官方授权</option>
	  		    <option value="1">官方授权</option>
	  		  </select>
	  		</div>
	    </div>
	  </div>
	  <div class="form-group">
	    <label for="inputPassword3" class="col-sm-3 control-label">所属分类</label>
	    <div class="col-sm-9">
	  		<div class="input-group col-md-6">
	  		  <select class="form-control" name="cate">
				    <option value="0">请选择</option>
					@foreach($cates as $k => $v)
					  <option value="{{$v->id}}">{{$v->goodsname}}</option>
					@endforeach
				</select>
	  		</div>
	    </div>
	  </div>
	  <div class="form-group">
	    <label for="inputPassword3" class="col-sm-3 control-label">所属品牌</label>
	    <div class="col-sm-9">
	  		<div class="input-group col-md-6">
	  		  <select class="form-control" name="brand">
				    <option value="0">请选择</option>
					@foreach($arr as $k => $v)
					  <option value="{{$v->id}}">{{$v->name}}</option>
					@endforeach
				</select>
	  		</div>
	    </div>
	  </div>
	  <div class="form-group">
	    <label for="inputPassword3" class="col-sm-3 control-label">功效</label>
	    <div class="col-sm-9">
	  		<div class="input-group col-md-6">
	  		@foreach($effect as $k=>$v)
	  		  <label class="checkbox-inline">
	  		    <input type="checkbox" id="inlineCheckbox1" name="effect[]" value="{{$v->id}}"> {{$v->name}}
	  		  </label>
	  		  @endforeach
	  		</div>
	    </div>
	  </div>
	  <div class="form-group">
	    <label for="inputPassword3" class="col-sm-3 control-label">商品总数量</label>
	    <div class="col-sm-5">
	    	<input type="text" name="count" class="form-control" placeholder="请输入商品数量">
		</div>
	  </div>
	  <div class="form-group">
	    <label for="inputPassword3" class="col-sm-3 control-label">商品原价格</label>
	    <div class="col-sm-9">
	  		<div class="input-group col-md-9">
	  		  <span class="input-group-addon">$</span>
	  		  <input type="text" name="price" class="form-control">
	  		</div>
	    </div>
	  </div>
	  <div class="form-group">
	    <label for="inputPassword3" class="col-sm-3 control-label">商品折扣价格</label>
	    <div class="col-sm-9">
	  		<div class="input-group col-md-9">
	  		  <span class="input-group-addon">$</span>
	  		  <input type="text" name="discount" class="form-control">
	  		</div>
	    </div>
	  </div>
	  	  <div class="form-group">
	  	    <label for="inputEmail3" class="col-sm-3 control-label">商品描述</label>
	  	    <div class="col-sm-9">
	  	      <textarea class="form-control" name="description" rows="3"></textarea>
	    	    	<span class="help-block"><span style="color:red;">*</span>&nbsp;&nbsp;限制200个文字以下</span>
	  	    </div>
	  	  </div>
	 <input type="hidden" name="seckillid" value="{{$sid}}">
	
	  {{csrf_field()}}
	  <div class="form-group">
	    <div class="col-sm-offset-3 col-sm-6">
	        <button type="submit" class="btn btn-default">确定添加</button>
	    </div>
	  </div>
	</form>
</div>
@endsection
